package com.frame.imageprocess.template;

import com.frame.imageprocess.factory.PicParseStrategyFactory;
import com.frame.imageprocess.strategy.ParsePicStrategy;


public abstract class PicParseTemplate {

    public ParsePicStrategy processPic(String picType, String params){
        try {
            ParsePicStrategy strategy = PicParseStrategyFactory.createStrategy(picType,params);
            return strategy;
        }catch (Exception e){
            e.printStackTrace();
            return null;
        }

    }

}
